package com.ontheroad.topic.model;

import org.mybatis.annotation.Table;

import java.io.Serializable;
import java.util.Date;


/**
 * Topic对象定义
 * <p>
 * 工具自动生成代码
 *
 * @author Admin
 */
@Table(pkId = {"id"}, tabName = "topic", notColumn = {"nick"})
public class TopicModel implements Serializable {

    /**
     * uid
     */
    private static final long serialVersionUID = 1L;
    /**  */
    private Integer id;
    /**
     * 话题名称
     */
    private String name;
    /**
     * 话题描述
     */
    private String description;
    /**
     * 参与人数
     */
    private Integer participantsCount = 0;
    /**
     * 是否为热门话题
     */
    private Boolean isHot = false;

    /**
     * 类型(1:系统管理员创建；2:用户创建)
     */
    private Integer type;

    /**
     * 话题创建人ID
     */
    private Integer createId;

    /**
     * 创建时间
     */
    private Date createTime;

    private String nick;

    /**
     * 话题图片
     */
    private String icon;

    /**
     * 取得
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 取得话题名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置话题名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 取得话题描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置话题描述
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 取得参与人数
     */
    public Integer getParticipantsCount() {
        return participantsCount;
    }

    /**
     * 设置参与人数
     */
    public void setParticipantsCount(Integer participantsCount) {
        this.participantsCount = participantsCount;
    }

    /**
     * 取得是否为热门话题
     */
    public Boolean getIsHot() {
        return isHot;
    }

    /**
     * 设置是否为热门话题
     */
    public void setIsHot(Boolean isHot) {
        this.isHot = isHot;
    }

    /**
     * 取得
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
